﻿@section header{

}
<form id="form1">
    <div class="form-layout">
        <input type="hidden" name="ID" />
        <table class="form">

            <tr>
                <th class="formTitle">角色名称</th>
                <td class="formValue">
                    <input id="Name" name="Name" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">当前状态</th>
                <td class="formValue">
                    <input id="Status" name="Status" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>


        </table>
    </div>
</form>
@section scripts{
    <script>
        var baseUrl = "/rbac/Role/";
        var keyValue = $.request("keyValue");
        $(function () {
            initControl();
            $.ajax({
                url: baseUrl + "GetFormJson",
                data: { keyValue: keyValue },
                dataType: "json",
                async: false,
                success: function (data) {
                    $("#form1").formSerialize(data);
                    $("#form1").find('.form-control,select,input').attr('readonly', 'readonly');
                    $("#form1").find('div.ckbox label').attr('for', '');
                }
            });
        });
        function initControl() {

        }
    </script>
}